/**
 * @Created Oct 14, 2010 9:21:08 AM
 * @author cry30
 */
package com.philip.journal.core;

/**
 * TODO: Move to database.
 *
 * Constant messages.
 */
public final class Messages {

    /** Utility class. */
    private Messages() {}

    /** Error messages. */
    public final class Error {

        /** Utility class must have private constructor. */
        private Error() {}

        /** RTFC. */
        public static final String IMPOSSIBLE = "Impossible Error.  Prevent PMD complaint.";

        /** RTFC. */
        public static final String SYSTEM_ERROR = "System error encountered.";

        /** RTFC. */
        public static final String GEN_ERROR = "Developer Error: Generic";
        /** RTFC. */
        public static final String IAE_NULL = "Developer Error: Null Parameter is not allowed.";
        /** RTFC. */
        public static final String IAE_NULLOREMPTY = "Developer Error: Null or Zero-length parameter is not allowed.";
        /** RTFC. */
        public static final String IAE_TYPE_MISMATCH = "Developer Error: Type Mismatched.";
        /** RTFC. */
        public static final String IAE_GENERIC = "Developer Error: Illegal argument passed.";
        /** Invalid Update. */
        public static final String IAE_INV_UPDATE = "Developer Error: Cannot update non-existent record.";
        /** RTFC. */
        public static final String IAE_INVALID_PROP = "Developer Error: Invalid Property Name.";
        /** Invalid method. */
        public static final String IAE_INV_METHOD = "Developer Error: Invalid Method Name.";

        /** RTFC. */
        public static final String JE_FK_ERROR = "Foreign key constraint violation.";
        /** Missing object error. */
        public static final String JE_OBJ_MISS_ERR = "Delete failed for missing object";
        /** Unsaved referenced object error. */
        public static final String JE_UNSVD_ROBJ_ERR = "Required to save referenced object.";
        /** Thrown when there is attempt to add/delete a non existing branch ID, impossible. */
        public static final String JE_INV_BRANCHID = "Invalid Branch ID.";
        /** Thrown when there is attempt to add a null or empty String Branch name. */
        public static final String JE_INV_BRANCHNAME = "Invalid Branch Name.";
    }
}
